//
//  LBHTTPClient.h
//  LvoeBeen_Imitation
//
//  Created by Mac on 17/2/18.
//  Copyright © 2017年 itcast. All rights reserved.
//

/**
 *  封装网络框架
 */

#import <AFNetworking/AFNetworking.h>

typedef enum {
    HttpTypeGet = 0,
    HttpTypePost = 1
}HttpType;

@interface LBHTTPClient : AFHTTPSessionManager

+ (instancetype) sharedClent;

+ (void) loadDataWithType:(HttpType)httpType
                 urlString:(NSString *)urlString
                    param:(NSDictionary *)param
            progressBlock:(void(^)(NSProgress *))progressBlock
            SuccedBlock:(void(^)(NSURLSessionDataTask *task,id object))succedBlock
            failureBlock:(void(^)(NSURLSessionDataTask *task,NSError *error))failureBlock;

@end
